import axios from '@/util'; 

import type {
} from './typings';



/**
 * 发送验证码 POST /api/mail/sendVerificationCode
 */
export async function post_api_mail_sendverificationcode (
  data: {
    /** email */
    email?: string;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'POST',
    url: `/api/mail/sendVerificationCode`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 验证验证码 POST /api/mail/verifyCode
 */
export async function post_api_mail_verifycode (
  data: {
    /** email */
    email?: string;
    /** code */
    code?: string;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'POST',
    url: `/api/mail/verifyCode`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 检查邮箱是否真实存在 GET /api/mail/check-email-exists/{email}
 */
export async function get_api_mail_check_email_exists__email_ (
  pathVars: {
    /**  */
    email: any;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'GET',
    url: `/api/mail/check-email-exists/${pathVars.email}`,
    ...(options || {}),
  })
}
